package by.brest.bspc.service;

import net.sf.jasperreports.engine.JasperPrint;

import java.util.Map;

/**
 * This interface describes the reporter service.
 *
 * @date: 10/5/13 6:02 PM
 * @author: frehty
 */
public interface JasperReportsCreatorService {

    /**
     * This method create xlsx format report with jasper template from mongodb collection.
     *
     * @param sourceFile template file.
     * @param parametersMap  parameters for query.
     * @param xlsxFile   saving xlsx reports.
     * @param mongoUri mongo uri.
     * @return filled jasperPrint object.
     * @throws java.net.UnknownHostException
     */
    public JasperPrint createReport(String sourceFile, Map<String, Object> parametersMap, String xlsxFile, String mongoUri);
}
